# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=vbrute
pkgver=1.11dda8b
pkgrel=4
pkgdesc='Virtual hosts brute forcer.'
arch=('armv6h' 'armv7h' 'aarch64' 'x86_64')
groups=('blackarch' 'blackarch-recon' 'blackarch-scanner')
url='https://github.com/nccgroup/vbrute'
license=('GPL3')
depends=('libevent')
makedepends=('git')
source=("git+https://github.com/nccgroup/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd $pkgname

  autoreconf

  ./configure --prefix=/usr
}

package() {
  cd $pkgname

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

  make DESTDIR="$pkgdir" install
}

